package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 工作计划对象 oa_work_plan
 */
public class OaWorkPlan extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 工作计划 ID */
    private Long id;

    /** 工作计划内容 */
    @Excel(name = "工作计划内容")
    private String content;

    /** 计划时间 */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "计划时间", width = 20, dateFormat = "HH:mm")
    private Date time;

    /** 计划状态 */
    @Excel(name = "计划状态")
    private String type;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 用户 ID */
    @Excel(name = "用户 ID")
    private Long userId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Date getTime() {
        return time;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("content", getContent())
                .append("time", getTime())
                .append("type", getType())
                .append("createTime", getCreateTime())
                .append("userId", getUserId())
                .toString();
    }
}